package com.wanlian.router.ui.integral;

import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.ViewPager;

import com.smart.android.ui.BaseActivity;
import com.wanlian.router.R;
import com.wanlian.router.ui.WlBaseActivity;

import butterknife.BindView;

/**
 * Created by Hyu on 2018/8/29.
 * Email: fvaryu@qq.com
 */
public class IncomeDetailActivity extends WlBaseActivity {

//    @BindView(R.id.tab_layout)
//    TabLayout mTabLayout;
//    @BindView(R.id.viewpager)
//    ViewPager mViewPager;

    @Override
    protected int layout() {
        return R.layout.activity_income_detail;
    }

    @Override
    public void initUI() {
        super.initUI();

        setTitle("我的收益");
//        mViewPager.setAdapter(new FragmentStatePagerAdapter(getSupportFragmentManager()) {
//            @Override
//            public Fragment getItem(int i) {
//                switch (i) {
//                    case 0:
//                        return TelecomIntegralFragment.newInstance();
//                    case 1:
//                        return IntIntegralFragment.newInstance();
//                }
//                return null;
//            }
//
//            @Override
//            public int getCount() {
//                return 2;
//            }
//
//            @Nullable
//            @Override
//            public CharSequence getPageTitle(int position) {
//               switch (position) {
//                   case 0:
//                       return "电信积分";
//                   case 1:
//                       return "INT积分";
//               }
//                return super.getPageTitle(position);
//            }
//        });
//
//        mTabLayout.setupWithViewPager(mViewPager);
    }

    @Override
    public void initData() {
        super.initData();

        showFragment(IntIntegralFragment.newInstance(), "int_integer");
    }
}
